import axios from '@/utils/request.js'

// 重置密码
export function resetpwd (param) {
    return axios.post('/system/user/resetpw', param)
}
// 数据字典
// 来源: sys_data_source
// 接口来源字: sys_data_interface
export function systemDict (key) {
    return axios.get(`/system/dict/${key}`)
}
// 大屏模板列表
export function systemTemplateList (param) {
    return axios.get('/system/template/list', param)
}
// 账号权限设置
export function systemUserPerms (param) {
    return axios.get('/system/user/perms', param)
}
// 客户非基本信息设置
export function systemUserSetting (param) {
    return axios.post('/system/user/setting', param)
}
// 报告列表
export function opinionReportList (param) {
    return axios.post('/opinion/report/list', param)
}
// 添加文件夹 folderName
export function reportFolderAdd (param) {
    return axios.post('/opinion/report/folder/add', param)
}
// 删除文件夹
export function reportFolderDel (id) {
    return axios.post(`/opinion/report/folder/del/${id}`)
}
// 用户联系人列表 
export function opinionContactsList () {
    return axios.get('/opinion/contacts/list')
}
// 添加用户联系人
export function opinionContactsAdd (param) {
    return axios.post('/opinion/contacts/add', param)
}
// 联系人详情
export function opinionContactsDetail (id) {
    return axios.post(`/opinion/contacts/detail/${id}`)
}
// 修改用户联系人
export function opinionContactsEdit (param) {
    return axios.post('/opinion/contacts/edit', param)
}
// 删除用户联系人
export function opinionContactsDel (id) {
    return axios.post(`/opinion/contacts/del/${id}`)
}
// 修改密码（见后台-个人中心）
export function systemEditPwd (param) {
    return axios.post('/system/profile/edit/pass', param)
}
